package com.gopay.common.domain.bank.wechat.scan.cmbc;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.gopay.common.domain.bank.BaseMessage;

/**
 * 传输的报文：包括请求头和请求体;
 * 请求和响应均为该类
 */
public class TransMsg <T> extends BaseMessage{
	
	private static final long serialVersionUID = -2738137145233545946L;

	private Head head;
	
	private T body;
	
	public Head getHead() {
		return head;
	}

	public void setHead(Head head) {
		this.head = head;
	}

	public T getBody() {
		return body;
	}

	public void setBody(T body) {
		this.body = body;
	}
	
	@Override
    public String toString(){
		return "Head : "+ToStringBuilder.reflectionToString(head) 
		+ "Body : " + ToStringBuilder.reflectionToString(body);
	}

}
